@btn-height: 30px;
@btn-hover-color: #FFFFFF;

@btn-disabled-color: #CCCCCC;

@color-default: #3FA9F5;
@color-primary: #337ab7;
@color-success: #5cb85c;
@color-info:    #5bc0de;
@color-warning: #f0ad4e;
@color-danger:  #d9534f;


.tips-status(@color: @color-default){
    border: 1px solid @color;
    color: @color;
    &:hover{
        background-color: @color;
    }
}

.c-tips{
    display: flex;
    justify-content: center;
    align-items: center;
    height: @btn-height;
    box-sizing: border-box;
    overflow: hidden;
    border-radius: 3px;
    background-color: transparent;
    cursor: pointer;
    padding: 3px 12px;

    &.default{
        .btn-status(@color-default);
    }

    &.primary{
        .btn-status(@color-primary);
    }

    &.success{
        .btn-status(@color-success);
    }

    &.info{
        .btn-status(@color-info);
    }

    &.warning{
        .btn-status(@color-warning);
    }

    &.danger{
        .btn-status(@color-danger);
    }

    &:hover{
        color: @btn-hover-color;
    }

    &.disabled, &disabled:hover{
        color: @btn-disabled-color;
        border: 1px solid @btn-disabled-color;
        background-color: transparent;
    }

    &.hidden{
        display: none;
    }

    &.float-left{
        float:left !important;
    }
    &.float-right{
        float:right !important;
    }

    &.float-none{
        clear: both;
        margin-left: 0px !important;
        margin-right: 0px !important;
        width: 100%;
    }

    &>.btn-icon{
        margin-right: 4px;
        margin-top: 2px;
    }

    &>.btn-text{
        text-align: center;
    }
}
